package dp.gr03.payroll.generalTransactions;

import dp.gr03.payroll.classifications.HourlyClassification;
import dp.gr03.payroll.payrollDomain.PaymentClassification;
import dp.gr03.payroll.payrollDomain.PaymentSchedule;
import dp.gr03.payroll.schedules.WeeklySchedule;

public class AddHourlyEmployee extends AddEmployeeTransaction
{

    protected double hourlyRate;
    
    public AddHourlyEmployee(int employeeId, String name, String address, double hourlyRate)
    {
        super(employeeId, name, address);
        this.hourlyRate = hourlyRate;
    }

    @Override
    protected PaymentSchedule getPaymentSchedule()
    {
        return new WeeklySchedule();
    }

    @Override
    protected PaymentClassification getClassification()
    {
        return new HourlyClassification(hourlyRate);
    }

}
